Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenCTI Connector Charms #3

Merged
merged 99 commits into from
Jan 24, 2025
Merged

Add OpenCTI Connector Charms #3

merged 99 commits into from
Jan 24, 2025

Conversation

weiiwang01
Copy link
Collaborator

Overview

Add the framework for OpenCTI connector charms, including a charm library that serves as the foundation for all OpenCTI connector charms and a template for generating OpenCTI connector charm projects.

This pull request also introduces 18 connector charms.

Crowdstrike
Sekoia
VirusTotal
AbuseIPDB
MISP Feed
MalwareBazaar Recent Additions
CISA Know Exploited Vulnerabilities
urlscan.io
Cyber Campaign Collection
URLHaus
AlienVault
VX Vault
Mitre ATT&CK
Import Document
Import File STIX
Export File CSV
Export File STIX
Export File TXT

Rationale

Juju Events Changes

Module Changes

Library Changes

Checklist

src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
jdkandersson
jdkandersson previously approved these changes Jan 24, 2025
Copy link

@jdkandersson jdkandersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for putting this together! It is good to go from my side

Copy link

@gregory-schiano gregory-schiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks :)

Copy link
Contributor

Test coverage for 020e8ce

Name             Stmts   Miss Branch BrPart  Cover   Missing
------------------------------------------------------------
src/charm.py       311     31     76     11    87%   132, 207-219, 237-238, 455-456, 543-549, 667, 671, 676, 691, 693->689, 697, 715, 720->724, 725, 734-736
src/opencti.py      59     32     10      0    39%   61-69, 83-125, 143-171, 186-202, 215-231
------------------------------------------------------------
TOTAL              370     63     86     11    79%

Static code analysis report

Run started:2025-01-24 08:59:27.709720

Test results:
  No issues identified.

Code scanned:
  Total lines of code: 868
  Total lines skipped (#nosec): 3
  Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
  Total issues (by severity):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
  Total issues (by confidence):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
Files skipped (0):

@weiiwang01 weiiwang01 merged commit 7a77cfa into main Jan 24, 2025
93 checks passed
@weiiwang01 weiiwang01 deleted the connectors branch January 24, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants